Resource URL: /platform/<<version=1>>/auth/roles/<ROLE>

    Overview: This resource applies the standard collection pattern to
              individual roles.

     Methods: GET, PUT, DELETE

********************************************************************************

Method GET: Retrieve the role information.

       URL: GET /platform/<<version=1>>/auth/roles/<ROLE>

Query arguments:
resolve_names=<boolean> Resolve names of personas.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "roles": {
      "items": {
        "type": "object", 
        "description": "Specifies the role maps privileges to users and groups.", 
        "properties": {
          "name": {
            "required": true, 
            "type": "string", 
            "description": "Specifies the name of the role."
          }, 
          "privileges": {
            "items": {
              "type": "object", 
              "description": "Specifies the system-defined privilege that may be granted to users.", 
              "properties": {
                "read_only": {
                  "type": "boolean", 
                  "description": "True, if the privilege is read-only."
                }, 
                "id": {
                  "required": true, 
                  "type": "string", 
                  "description": "Specifies the ID of the privilege."
                }, 
                "name": {
                  "type": "string", 
                  "description": "Specifies the name of the privilege."
                }
              }
            }, 
            "required": true, 
            "type": "array", 
            "description": "Specifies the privileges granted by this role."
          }, 
          "description": {
            "required": true, 
            "type": [
              {
                "type": "string", 
                "description": "Specifies the description of the role."
              }, 
              {
                "type": "null"
              }
            ]
          }, 
          "members": {
            "items": {
              "type": "object", 
              "description": "Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'.", 
              "properties": {
                "type": {
                  "enum": [
                    "user", 
                    "group", 
                    "wellknown"
                  ], 
                  "type": "string", 
                  "description": "Specifies the type of persona, which must be combined with a name."
                }, 
                "id": {
                  "type": "string", 
                  "description": "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'."
                }, 
                "name": {
                  "type": "string", 
                  "description": "Specifies the persona name, which must be combined with a type."
                }
              }
            }, 
            "required": true, 
            "type": "array", 
            "description": "Specifies the users or groups that have this role."
          }, 
          "id": {
            "required": true, 
            "type": "string", 
            "description": "Specifies the ID of the role."
          }
        }
      }, 
      "type": "array"
    }
  }
}

********************************************************************************

Method PUT: Modify the role.

       URL: PUT /platform/<<version=1>>/auth/roles/<ROLE>

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "description": "Specifies the role maps privileges to users and groups.", 
  "properties": {
    "privileges": {
      "items": {
        "type": "object", 
        "description": "Specifies the system-defined privilege that may be granted to users.", 
        "properties": {
          "read_only": {
            "type": "boolean", 
            "description": "True, if the privilege is read-only."
          }, 
          "id": {
            "required": true, 
            "type": "string", 
            "description": "Specifies the ID of the privilege."
          }, 
          "name": {
            "type": "string", 
            "description": "Specifies the name of the privilege."
          }
        }
      }, 
      "type": "array", 
      "description": "Specifies the privileges granted by this role."
    }, 
    "description": {
      "type": "string", 
      "description": "Specifies the description of the role."
    }, 
    "members": {
      "items": {
        "type": "object", 
        "description": "Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'.", 
        "properties": {
          "type": {
            "enum": [
              "user", 
              "group", 
              "wellknown"
            ], 
            "type": "string", 
            "description": "Specifies the type of persona, which must be combined with a name."
          }, 
          "id": {
            "type": "string", 
            "description": "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'."
          }, 
          "name": {
            "type": "string", 
            "description": "Specifies the persona name, which must be combined with a type."
          }
        }
      }, 
      "type": "array", 
      "description": "Specifies the users or groups that have this role."
    }, 
    "name": {
      "type": "string", 
      "description": "Specifies the name of the role."
    }
  }
}

There is no response body for this method.

********************************************************************************

Method DELETE: Delete the role.

          URL: DELETE /platform/<<version=1>>/auth/roles/<ROLE>

There are no query arguments for this method.

There is no response body for this method.
